<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生主页</title>
<link href="css/baitiao.css" rel="stylesheet" type="text/css" />
<style>
a {
	text-decoration: none;
}
</style>
</head>
<body align="center"
	style=" background-image: url(images/a.gif); background-size: 100%;">
	<%
        Object message = request.getAttribute("message");
        if (message != null && !"".equals(message)) {
    %>
	<script type="text/javascript">
              alert("<%=request.getAttribute("message")%>");
              var  asd=request.getAttribute("username");         
    </script>
	<%
        }
    %>
	<% String prename=null;
    prename=request.getParameter(prename); 
    %>


	<script type="text/javascript">
	function back(){
    	alert('退出成功');
    	location.href='index.jsp';
    	}
    </script>
	<div style="margin-top: 50px">
	</div>
	<div align="center">

		<div
			style="border: 5px solid black; width: 300px; height: 300px; border-radius: 35px; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);">
			<h1>学生个人信息管理</h1>

			<div>

				<a href="updatestu.jsp">修改个人信息</a>
			</div>
			<HR align=center width=150px color=gray SIZE=1>
			<div>

				<a href="Servlet?method=list3&user=${prename }">我的课程</a>
			</div>
			<HR align=center width=150px color=gray SIZE=1>
			<div>
				<a href="Servlet?method=list1">选课</a>

			</div>
			<HR align=center width=150px color=gray SIZE=1>
			<div>
				<a href="Servlet?method=list2&user=${prename }">退课</a>

			</div>
			<HR align=center width=150px color=gray SIZE=1>
			<div>
				<button id="btn" onclick="back()">退出系统</button>
			</div>
		</div>
		<div
			style="width: 100%; height: 50px; position: absolute; bottom: 25%;">
			<h1>当前用户：${prename }</h1>
		</div>
	</div>



	
</body>

</html>